package com.zky.context;

import org.springframework.stereotype.Component;

@Component
public class BaseContext {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();
    public static void setAccount(String account) {
        threadLocal.set(account);
    }
    public static String getAccount() {
        return threadLocal.get();
    }
    public static void removeAccount() {
        threadLocal.remove();
    }


}
